<template>
    <div>
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item>商城管理</el-breadcrumb-item>
            <el-breadcrumb-item>会员管理</el-breadcrumb-item>
        </el-breadcrumb>
        <el-button    @click="add" plain class="add" type="primary" size="small">添加</el-button>
        <sCon @isedit="edit"  ref="sCon"/>
        <tost :isshow="isshow"  @isshow="esc" :isedit="isedit" ref="mytost" @reday="reday" />
    </div>
</template>

<script>
import sCon from '../components/touser/content.vue'
import tost from '../components/touser/tost.vue'

export default {
    data() {
        return {
            isshow:false,
            isedit:false
        };
    },
    methods: {
        reday(){
            console.log(this.$refs.sCon);
            this.$refs.sCon.look()
        },
        add(){
            this.isshow=true
            this.isedit=false
        },
        esc(e){
            // console.log(e,'eeeeeeeeeeeeeeeeee');
            this.isshow=e
        },
        edit(e){
            // console.log(222222222222222222222222222222);
            this.isshow=true
            this.isedit=true
            // console.log(this.$refs.mytost);
            this.$refs.mytost.lookup(e)
        }
        
    },
    mounted(){

    },
    components: {
        sCon,
        tost
    },
}
</script>

<style scoped>
.add {
    margin: 6px 0px;
    visibility: hidden;
}

</style>
